<template>
  <el-dialog title="区域详情" :visible="isShow" width="630px" @close="closeFn">
    <el-table :data="nodeInfo" style="width: 100%">
      <el-table-column label="序号" width="100">
        <template v-slot="{ row }">
          <span>{{ row.index }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="innerCode" label="机器编号" >
      </el-table-column>
      <el-table-column prop="vmCount" label="设备状态">
        <template v-slot="{row}">
          <span>{{ row.vmStatus === 1 ? '运营' : row.vmStatus === 3 ? '撤机' : row.vmStatus === 0 ? '未投放' : '' }}</span>
        </template>
         </el-table-column>
      <el-table-column  label="最后一次供货时间" width="180"> 
        <template v-slot="{row}">
          <span>{{ row.updateTime.split('T').join(' ') }}</span>
        </template>
      </el-table-column>
    </el-table>
  </el-dialog>
</template>

<script>
export default {
  props: {
    isShow: Boolean,
    nodeInfo: Array,
  },
  data() {
    return {
     
    };
  },
  created() {},
  methods: {
    closeFn() {
      this.$emit("update:isShow", false);
    },
  },
};
</script>

<style lang="scss" scoped>
.btn {
  width: 80px;
  height: 36px;
  border: none;
  padding: 0;
  line-height: 36px;
}
.cancel {
  background-color: #fbf4f0;
  color: #7e7570;
}
.confirm {
  background-color: #ff6d29;
  color: #fff;
}
</style>
